//
// Created by 段大志 on 15/12/27.
// Copyright (c) 2015 MengHuan. All rights reserved.
//

#import "DataModel.h"


@implementation DataModel {

}
@end

@implementation CommonModel {

}
+ (BOOL)propertyIsOptional:(NSString *)propertyName {
    return true;
}
@end


@implementation SysMenuObject
@end

@implementation SysUser
- (NSString *)userTypeMyname {
    //userType表示用户身份 0  系统管理员   1   地市管理员   2分公司管理员   3   渠道经理  4  分销商
    NSArray *userTypeArr = @[@"系统管理员",@"地市管理员",@"分公司管理员",@"渠道经理",@"分销商"];
    NSString *typeName = @"用户身份未知";
    if (self.userType.intValue < userTypeArr.count) {
        typeName = userTypeArr[self.userType.intValue];
    }
    _userTypeMyname = typeName;
    return _userTypeMyname;
}

@end

@implementation SysUnit
@end

@implementation NoticePageObject
@end

@implementation NoticePage
- (NSArray *)dataNameArra {
    NSMutableArray *array = [[NSMutableArray array] init];
    if (_data && _data.count > 0) {
        for (int j = 0; j < _data.count; ++j) {
            NoticePageObject *noticePageObject =  _data[j];
            [array addObject:noticePageObject.title];
        }
    }
    _dataNameArra = array;
    return _dataNameArra;
}
@end

@implementation SelectTypeBean
- (instancetype)initWithId:(NSString <Optional> *)id name:(NSString <Optional> *)name picpath:(NSString <Optional> *)picpath {
    self = [super init];
    if (self) {
        self.id = id;
        self.name = name;
        self.picpath = picpath;
    }

    return self;
}

- (instancetype)initWithName:(NSString <Optional> *)name {
    self = [super init];
    if (self) {
        self.name = name;
    }

    return self;
}

- (instancetype)initWithId:(NSString <Optional> *)id name:(NSString <Optional> *)name {
    self = [super init];
    if (self) {
        self.id = id;
        self.name = name;
    }

    return self;
}

+ (instancetype)beanWithId:(NSString <Optional> *)id name:(NSString <Optional> *)name {
    return [[self alloc] initWithId:id name:name];
}


+ (instancetype)beanWithName:(NSString <Optional> *)name {
    return [[self alloc] initWithName:name];
}


+ (instancetype)beanWithId:(NSString <Optional> *)id name:(NSString <Optional> *)name picpath:(NSString <Optional> *)picpath {
    return [[self alloc] initWithId:id name:name picpath:picpath];
}

@end

@implementation MsgModel {

}
+ (BOOL)propertyIsOptional:(NSString *)propertyName {
    return true;
}
@end

@implementation NumPoolModel {

}
+ (BOOL)propertyIsOptional:(NSString *)propertyName {
    return true;
}
@end

@implementation DitchManageModel {

}
+ (BOOL)propertyIsOptional:(NSString *)propertyName {
    return true;
}
@end



@implementation MsgReceiveModel {

}
+ (BOOL)propertyIsOptional:(NSString *)propertyName {
    return true;
}
@end

@implementation OrderDealModel
@end

@implementation OrderDealDetailModel
@end


@implementation OrderDealDetailOrderInfo
@end

@implementation OrderDealDetailOrderContentInfo
+ (JSONKeyMapper *)keyMapper
{
    //return [[JSONKeyMapper alloc] initWithDictionary:@{@"newBankAccountName":@"neuBankAccountName"}]; // 手动解析，前面是json key ;后面是model的属性名称
    return [[JSONKeyMapper alloc] initWithDictionary:@{
            @"newBankAccountName": @"neuBankAccountName",
            @"newBankId": @"neuBankId",
            @"newBankName": @"neuBankName",
            @"newBusinessAddress": @"neuBusinessAddress",
            @"newShop": @"neuShop",
            @"newAccount": @"neuAccount",
            @"newDistrict": @"neuDistrict",
            @"newSubBank": @"neuSubBank",
    }];
}
@end

@implementation OrderDealDetailPoolList
@end

@implementation  TelModel
@end

@implementation StoresListModel
@end

@implementation BlackListModel
@end

@implementation BlackListWrapModel
@end

@implementation BlackUserMapModel
@end

@implementation BackMessListModel
@end

@implementation BackViewWrapModel
@end
